package com.springboot.cloud.demos.web.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "ribbon-consumer", fallback = BannerServiceFallback.class)
public interface BannerService {

    @RequestMapping(value = "/banner", method = RequestMethod.GET)
    Result banner();

}
